/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates.commands;
/**
 *
 * @author Developer
 */
public class autoDrive extends CommandBase {
    public autoDrive() {
        // Use requires() here to declare subsystem dependencies
        // eg. requires(chassis);
        requires(drivePID);
    }
    // Called just before this Command runs the first time
    protected void initialize() {
        drivePID.setSetpoint(167);
    }
    protected void execute() {
        drivePID.enable();
    }
    protected boolean isFinished() {
        return (Math.abs(drivePID.getPosition() - drivePID.getSetpoint()) < 1);
    }
    protected void end() {
    }

    protected void interrupted() {
    }
}